<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/webCommon/webCommon.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>题目修改</title>
<!-- 默认选中班级名称-开始 -->
<script type="text/javascript">
	$(document).ready(function() {
		$(".classIdSelect").each(function() { //循环获取所有单位编号 
			var classId = $(this).attr("value");
			var fileClassId = $("#sysTitleInformationClassId").attr("value");
			if (classId == fileClassId) {
				$(this).attr("selected", "selected");
			}
		});
	});
</script>
<!-- 默认选中班级名称-结束 -->
<!-- 默认选中组名名称-开始 -->
<script type="text/javascript">
	$(document).ready(function() {
		$(".studentGroupSelect").each(function() { //循环获取所有单位编号 
			var studentGroupId = $(this).attr("value");
			var studentGroup = $("#sysTitleInformationStudentGroupId").attr("value");
			if (studentGroupId == studentGroup) {
				$(this).attr("selected", "selected");
			}
		});
	});
</script>
<!-- 默认选中组名名称-结束 -->
<script type="text/javascript" src="plugins/layui/layui.js"></script>
<script>
	layui.use([ 'form', 'layedit', 'laydate' ], function() {
		var form = layui.form(),
			layer = layui.layer,
			layedit = layui.layedit,
			laydate = layui.laydate;
		//监听提交
		form.on('submit(tijiao)', function(data) {
			layer.alert(JSON.stringify(data.field), {
				title : '最终的提交信息'
			})
		});
	});
</script>

</head>

<body>
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="#">题目管理</a></li>
			<li><a href="#">修改题目信息</a></li>
		</ul>
	</div>

	<div style="margin: 15px;">
		<form class="layui-form"
			action="<%=basePath%>/sys/SysTitleInformation_edit.action">
			<input name="id" type="hidden" value="${sysTitleInformation.id}">
			<input name="fileId" type="hidden"
				value="${sysTitleInformation.titleInfId}">


			<div class="layui-form-item">
				<label class="layui-form-label">题目名称</label>
				<div class="layui-input-inline">
					<input type="text" name="titleInfName" lay-verify="titleInfName"
						value="${sysTitleInformation.titleInfName}" autocomplete="off"
						placeholder="题目名称" class="layui-input">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">题目内容</label>
				<div class="layui-input-block">
					<input type="text" class="layui-textarea" name="titleInfContent" lay-verify="titleInfContent"
						value="${sysTitleInformation.titleInfContent }" autocomplete="off"
						placeholder="题目内容" class="layui-input">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">题目要求</label>
				<div class="layui-input-block">
					<input type="text" class="layui-textarea" name="titleInfAsk" lay-verify="titleInfAsk"
						value="${sysTitleInformation.titleInfAsk}" autocomplete="off"
						placeholder="题目要求" class="layui-input">
				</div>
			</div>

			<!-- <div class="layui-form-item">
				<label class="layui-form-label">题目发布时间</label>
				<div class="layui-input-inline">
					<input type="text" name="fileStartTime" lay-verify="fileStartTime"
						value="${sysTitleInformation.fileStartTime }" autocomplete="off"
						placeholder="题目发布时间" class="layui-input">
				</div>
			</div>
           -->
           <div class="layui-form-item">
				<label class="layui-form-label">题目发布时间</label>
				<div class="layui-input-inline" id="fileStartTime">
					<input type="text" name="fileStartTime" id="fileStartTime" value="${sysTitleInformation.fileStartTime }" lay-verify="fileStartTime" placeholder="yyyy-mm-dd" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: fileStartTime,istime: true,format: 'YYYY-MM-DD hh:mm:ss'})" >
				</div>
			</div>


			<div class="layui-form-item">
				<div class="layui-input-block">
					<button id="tijiao" class="layui-btn" lay-filter="tijiao"
						lay-submit="">立即提交</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</div>
		</form>


		<input name="sysTitleInformation.fileId" type="hidden"
			id="sysTitleInformationFileId" value="${sysTitleInformation.fileId}" />
		<!-- 用于下拉选择的读取-班别 -->

	</div>
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
	
</body>
</html>
